<?php
namespace Melon\Foundation;

use Pimple\Container;
use Symfony\Component\Console\Application as SymfonyApplication;

class Kernel extends SymfonyApplication
{
    /**
     * 全局容器
     * @var Container
     */
    protected Container $melon;

    public function __construct(Container $melon)
    {
        parent::__construct("Melon", "0.0.1");

        $this->melon = $melon;
    }

    public function getContainer() :Container {
        return $this->melon;
    }
}